<!-- Environnement de prod -->
<?php if ('production' == APPLICATION_ENV): ?>

<h3 class="center"><?= $this->reformatText($this->userMessage) ?></h3>

<?php endif ?>
<!-- Fin Environnement de prod -->



<!-- Environnement de dev -->
<?php if ('development' == APPLICATION_ENV): ?>

<h1>Application error</h1>
<h3><?= $this->message ?>:</h3>
<p><?= $this->errorMessage ?></p>

<h3>Exception information:</h3>

<?php foreach ($this->errors as $error) : ?>

<p><b>Message:</b> <?= $error->exception->getMessage() ?></p>
<p><b>User message:</b> <?= $this->userMessage ?></p>
<p><b>User message translated:</b> <?= $this->reformatText($this->userMessage) ?></p>

<h3>Stack trace:</h3>
<pre style="color:red;">
<?= $error->exception->getTraceAsString() ?>
</pre>

<h3>Request Parameters:</h3>
<pre style="color:DarkBlue;"><?= var_export($error->request->getParams(), true) ?></pre>

<?php endforeach ?>

<?php endif ?>
<!-- Fin Environnement de dev -->
